package com.teradata.olingo.processor.core.query;

import com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAAssociationPath;
import com.teradata.olingo.processor.core.converter.GenericExpandResult;
import com.teradata.olingo.processor.core.converter.GenericTupleChildConverter;
import org.apache.olingo.commons.api.data.EntityCollection;
import org.apache.olingo.server.api.ODataApplicationException;

import java.util.Map;

public interface GenericConvertableResult {

  Map<String, EntityCollection> asEntityCollection(final GenericTupleChildConverter converter) throws ODataApplicationException;

  void putChildren(final Map<JPAAssociationPath, GenericExpandResult> childResults) throws ODataApplicationException;

}
